package com.hcy.usermodel.dto.response;

import com.hcy.rabbitbasicmodel.signl.Add;
import com.hcy.rabbitbasicmodel.signl.Delete;
import com.hcy.rabbitbasicmodel.signl.Update;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author huchenying
 * @Description
 * @Date 2022/4/21 18:36
 */
@Data
public class RoleResponseDTO {
    @NotNull(groups = {Update.class, Delete.class})
    private Integer id;
    @NotNull(groups = {Add.class, Update.class})
    private String name;
    private String menuListString;
    private String menuIdString;
    private List<String> menuList;
    @NotNull(groups = {Add.class})
    private List<Integer> menuIds;
    private String businessCode;
}
